package com.zhentao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zhentao.domain.YdAccountHead;
import com.zhentao.domain.dto.AllDto;
import com.zhentao.domain.dto.IncomeAndPayItemDto;
import com.zhentao.domain.dto.StatusDto;
import com.zhentao.domain.vo.IncomeAndPayItemVo;
import com.zhentao.util.Result;

import javax.servlet.http.HttpServletResponse;

public interface YdAccountHeadService extends IService<YdAccountHead> {

    /**
     * 收入单列表展示
     *
     * @param allDto
     * @return
     */
//    Result AccountHeadList(AllDto allDto);
    Result accountList(AllDto allDto);

    /**
     * 收入单新增/修改
     *
     * @param ydAccountHead
     * @return
     */
    Result AccountHeadSave(YdAccountHead ydAccountHead);

    /**
     * 查看单条数据
     *
     * @param id
     * @return
     */
    Result accountSelectOne(Integer id);

    /**
     * 删除单条数据
     *
     * @param id
     * @return
     */
    Result AccountHeadDel(Integer id);

    /**
     * 批量删除单据数据
     *
     * @param ids
     * @return
     */
    Result AccountHeadDels(Integer ids[]);

    /**
     * 审核
     *
     * @param statusDto
     * @return
     */
    Result AccountHeadStatus(StatusDto statusDto);

    PageInfo<IncomeAndPayItemVo> IncomeOrPayList(IncomeAndPayItemDto dto);


    //    导出
    void exportData(HttpServletResponse response, IncomeAndPayItemDto dto);

    PageInfo<IncomeAndPayItemVo> rcvOrMakeList(IncomeAndPayItemDto dto);
}
